<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<html lang="zh_CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=1024, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../CSS/top.css">
    <link rel="stylesheet" href="../CSS/forget_pas.css">
    <script type="text/javascript" src="../JS/top.js"></script>
    <title>页面即将跳转</title>
</head>

<body style="background-color:rgb(238, 237, 237)">
<%
String info=(String)session.getAttribute("mainInfo");
String islogin="unlogin";
if(session.getAttribute("isLogin")!=null){
	islogin=(String)session.getAttribute("isLogin");
}
%>
<input type="hidden" name="" id="isLogin" value=<%=islogin %> >
      <div id="top">
        <div class="nav_top">
        </div>
        <div class="navigation">
            <div class="nav" id="nav">
                <ul>
                    <li>
                        <a href="../index.jsp">首页</a>
                    </li>
                    <li>
                        <a href="./man_clothes.jsp" title="男装">男装</a>
                    </li>
                    <li>
                        <a href="./woman_clothes.jsp" title="女装">女装</a>
                    </li>
                    <li id="personal">
                        <a href="./personal.jsp" title="个人中心">个人中心</a>
                    </li>
                    <li id="login">
                        <a href="./login.jsp" title="登录/注册 ">登录/注册</a>
                        <dl class="nav_two">
                            <dd>
                                <a href="./login.jsp" title="登录">登录</a>
                            </dd>
                            <dd>
                                <a href="./register.jsp" title="注册">注册</a>
                            </dd>
                            <dd>
                                <a href="./forget_pas.jsp" title="忘记密码">忘记密码</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="center_top" style="height:700px;">
        <div class="center">
            <div class="title">
                <span>页面即将跳转</span>
                <hr>
            </div>
            <div class="center_text">
                <div class="prompt">
                	<span>
                	<%=info %>
                	</span>
                    <span>！页面正在跳转...</span>
                    <span style="color:red;padding-left:5px;" id="time"></span>
                    <p>如果没有跳转，请点击
                        <a href="../index.jsp">此处</a>
                    </p>
                </div>
                <style>
                    .prompt {
                        height: 50px;
                        width: 400px;
                        margin: auto;
                        text-align: center;
                        margin-top: 70px;
                        font-size: 22px;
                    }
                    
                    .prompt p {
                        padding-top: 20px;
                        font-size: 18px;
                    }
                </style>
            </div>
        </div>
    </div>
</body>

<script>
    setTimeout('window.location="../index.jsp"', 4000);
    var time = document.getElementById('time');
    var num = 4;
    setInterval(show, 1000);

    function show() {
        time.innerHTML = --num;
    }
    var isLogon = document.getElementById('isLogin').value;
    if (isLogon == 'login') {
        login();
    } else if (isLogon == 'unlogin') {
        unlogin();
    }
</script>

</html>